package com.ctrip.ibu.member.nameservice.module;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

/**
 * @author he.shaorong
 * @create 2023/3/27 19:01
 * @since 1.0.0
 */
@ApiModel("broker信息")
public class BrokerInfo {
    @ApiModelProperty("ip地址")
    private String ip;
    @ApiModelProperty("是否存活")
    private boolean isAlive = true;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    public BrokerInfo() {
    }

    public BrokerInfo(String ip) {
        this.ip = ip;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public boolean isAlive() {
        return isAlive;
    }

    public void setAlive(boolean alive) {
        isAlive = alive;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
}
